import request from "../util/request";

// 学生管理相关接口

// 学生管理 - 查询学生列表
export const selectStudentList = function (params = {}) {
  return request({
    url: "/admin/student",
    method: "get",
    params: params,
  });
};

// 根据ID删除学生
export const deleteStudentById = function (params = {}) {
  return request({
    url: "/admin/student",
    method: "delete",
    params: params,
  });
};

// 添加新学生
export const insertNewStudent = function (params = {}) {
  return request({
    url: "/admin/student",
    method: "post",
    params: params,
  });
};
